<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="root2"></div>

  <script src="./js/react.development.js"></script>
  <script src="./js/react-dom.development.js"></script>
  <script>
    // 创建React元素(虚拟DOM/虚拟节点)
    const virtualDom = React.createElement(
      'div',
      null, // 没有标签属性
      React.createElement('h2', {title: '北京疫情'}, '你关注的北京疫情'),
      React.createElement('p', null, '北京这段时间疫情还在持续中...')
    )
    // 渲染到页面
    ReactDOM.render(virtualDom, document.getElementById('root2'))

  </script>
</body>
</html>